using System;
using System.Collections.Specialized;

namespace TrainGame.Model
{
	/// <summary>
	/// Summary description for hexVisit.
	/// </summary>
	[Serializable]
	public class HexVisit
	{
		private	GameboardHex		_hex;
		private StringCollection	_directionsVisitedFrom;

		public StringCollection DirectionsVisitedFrom
		{
			get { return _directionsVisitedFrom; }
		}

		public bool VisitedFromThisDirection (string sDirection)
		{
			bool	bReturn = false;

			bReturn = _directionsVisitedFrom.Contains (sDirection);
			return bReturn;
		}

		public GameboardHex Hex
		{
			get { return _hex; }
			set { _hex = value; }
		}

		public HexVisit()
		{
			_hex = null;
			_directionsVisitedFrom = new StringCollection ();
		}
	}
}
